package com.zzusedating.androidapp.tools;

import android.os.Message;

/**
 * 58.87.127.50天津市天津市 腾讯云 服务不存在
 */
public class ConstantsTools {
    public static final int NETWORK_ERROR_I = 11;
    public static final String NETWORK_ERROR_ = "网络错误";

    private static String HOST_PORT = "http://58.87.127.50:8080/";
//    private static String HOST_PORT = "http://1706177d.nat123.net";
    public static String VERIFY_CODE_URL = HOST_PORT + "/api/getEmailVcode?email=%s&action=%s";
    public static String REG_NEXT = HOST_PORT + "/api/register?vcode=%s&password=%s";
    public static String BASIC_PROFILE = HOST_PORT + "/api/register?gender=%s&name=%s&birthday=%s&phoneNum=%s&maritalStatus=%s";
    public static String LOGIN = HOST_PORT + "/api/login?username=%s&password=%s";
    public static String RESET_PASSWORD_VERIFY = HOST_PORT + "/api/getEmailVcode?email=%s&action=resetPassword";
    public static String RESET_PASSWORD = HOST_PORT + "/api/resetPassword?vcode=%s&password=%s";
    public static String GET_RECOMMEND = HOST_PORT + "/api/getRecommendList";
    public static String GET_USER_INFO = HOST_PORT + "/api/getUserInfo";
    public static String GET_USER_DETAIL = HOST_PORT + "/api/getUserDetails";
    public static String GET_USER_MATE_INTENT = HOST_PORT + "/api/getUserFavour?userId=%d";
    public static String GET_SHE_MATE_INTENT = HOST_PORT + "/api/getUserFavour?userId=%d";
    public static String GET_SHE_ALL_INFO = HOST_PORT + "/api/getUserAllInfo?userId=%d";
    public static String SEARCH_NAME_EMAIL = HOST_PORT + "/api/searchUser?keyword=%s";
    public static String TWEET_ = HOST_PORT + "/api/sendDynamic?content=%s";
    public static String GET_TWEET_LIST = HOST_PORT + "/api/getFoundList";
    public static String FOLLOW_UN_USER = HOST_PORT + "/api/followUser?userId=%s";
    public static String LEAVE_MESSAGE = HOST_PORT + "/api/sendMessage?userId=%d&content=%s";
    public static String GET_MESSAGE_LEFT = HOST_PORT + "/api/getMessageList?count=%d";
    public static String GET_FOLLOW_LIST = HOST_PORT + "/api/getFollowingList?count=%d";
    public static String GET_FANS_LIST = HOST_PORT + "/api/getFansList?count=%d";
    public static String DELETE_MESSAGE = HOST_PORT + "/api/deleteMessage?messageId=%d";
    public static String MODIFY_PROFILE = HOST_PORT + "/api/updateUserInfo";

    public static Message createMessage(){
        Message message = new Message();
        message.what = NETWORK_ERROR_I;
        return message;
    }
    public static Message createMessage(int what){
        Message message = new Message();
        message.what = what;
        return message;
    }
    public static Message createMessage(int what, Object obj){
        Message message = new Message();
        message.obj = obj;
        message.what = what;
        return message;
    }
}
